<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/page/common/public.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>开心彩票用户调查问卷</title>
<script type="text/javascript" src="${path }/js/jquery-1.4.2.min.js?v=${v}"></script>
<script type="text/javascript" src="${path }/js/helper.js?v=${v}"></script>
<link rel="stylesheet" href="${path }/page/vote/css/style.css" />
</head>

<body>
 <div style="text-align:center; margin:20px 0 10px;">
            <div class="formfield" style="padding-bottom:30px;">
                <div class="description">${votemes}
                    </div>
                
                <div id="divWeiXin" style="margin-top:15px;">
                  <style>
                    .weixin_share {
                    background-image: url("images/shareweixin2.png");
                    background-position: 0 0;
                    background-repeat: no-repeat;
                    background-size: contain;
                    display: block;
                    float: right;
                    height: 230px;
                    margin-top: 5px;
                    position: relative;
                    width: 260px;
                    z-index: 999;
                    }
                    </style>
                  
                    <a href="javascript:void(0)" class="button" style="background:#E87814;color:#fff;display: none;" onclick="transferToWeiXin();">分享给朋友(圈)</a>
                      <script type="text/javascript">
                        function transferToWeiXin() {
                            var ua = navigator.userAgent.toLowerCase();
                            var iwx = false;
                            if (ua.match(/MicroMessenger/i) == "micromessenger")
                                iwx = true;
                            var bk = "";
                            if (!iwx) {
                                var WH = $(window).height();
                                var top = WH - 180;
                                bk = " style='background-image: url(images/shareweixin3.png);float:none;margin:0 auto;margin-top:" + top + "px'";
                            }
                          show_zhezhao_utils(true, '<a class="weixin_share" '+bk+' href="javascript:show_zhezhao_utils();"></a>');
                      }
                      function show_zhezhao_utils(offon, con) {
                          if (!offon) { offon = false };
                          if (!con) { con = "无内容" };
                          if (offon) {
                              $('body').append('<div style=" z-index: 99999;top: 0px;left: 0px;position: fixed;width: 100%;height: 100%;" class="zhezhao"><div style="position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;opacity: 0.5;background-color: #000;"></div>' + con + '</div>');
                              var Hh = $('html').height();
                              var Wh = $(window).height();
                              var Mh = 100;
                              Wh > Hh ? Mh = Wh : Mh = Hh;
                              $('.zhezhao').height(Mh);
                              $('.zhezhao').click(function () {
                                  show_zhezhao_utils();
                              });
                          } else {
                              $('.zhezhao').remove();
                          }
                      }
                      var t = document.title.split("(完")[0] || document.title;
                      var needAction=0;
                      var action = "大家一起帮忙来填写吧！";
                       if(needAction)
                        action=$(".description").text().replace(/您的/g,"").replace(/您/g,"")+"你也来试试吧！";
                      document.title = "我刚刚参与了"+t+"，"+action;  
                  </script>

                
</div>
</div>
</div>
</body>
</html>
